//
//  JYNoDataView.m
//  s.
//
//  Created by pro on 2021/1/27.
//  Copyright © 2021 hailuo. All rights reserved.
//

#import "JYNoDataView.h"
@interface JYNoDataView()
@property (nonatomic, strong) UIImageView *noDataImage;
@end

@implementation JYNoDataView

/* 创建单列 */
+(id)shareNoDataView
{
    JYNoDataView *netSingle = [[JYNoDataView alloc] init];
    netSingle.noDataImage = [UIImageView creatImageView:CGRectZero backGroundImageV:@"noData" toView:netSingle withContentMode:UIViewContentModeScaleAspectFit];
    return netSingle;
}
-(void)showNoDataView:(UITableView *)view
{
    [view removeNoDataView];
    self.frame = view.bounds;
    self.noDataImage.frame = CGRectMake(0, (self.height-80)/2, self.width,-80);
    [view addSubview:self];
}
-(void)removeNoDataView
{
    [self removeFromSuperview];
}
@end
